#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using MUSA;
#endregion

namespace MUSA
{

    /// <summary>
    /// MUSA sensory system outline
    ///     The Sensory sysstem is primarily responsible for the keeping track of the position
    ///     of enemies and allies.
    ///     All tanks from a single side share the same sensor. Each tank updates the sensor they
    ///     are given
    ///     Territory is determined by interperlation between tank units of opposed forces.
    /// </summary>

    class Sensory
    {
        private double width, length;       //area dimensions coverd by sensory map
        private int widDiv, lenDiv;         //coordinate divisions per width/divisions per length
        private Vector3 origin;             //origin position of sensory map(recommended: the base)

        private double[][] sensorArray;       //sensor array

        /// <summary>
        /// Default constuctor
        /// </summary>
        public Sensory()
        {
            width = 100;
            length = 100;
            origin = Vector3.Zero;
            widDiv = 10;
            lenDiv = 10;
        }

        public Sensory(double _width, double _length, Vector3 _origin, int _widthDivision, int _lengthDivision)
        {
            width = _width;
            length = _length;
            origin = _origin;
            widDiv = _widthDivision;
            lenDiv = _lengthDivision;
        }

        /// <summary>
        /// Create sensory array
        /// </summary>
        private void initialize()
        {
            sensorArray = new double[widDiv][];

            for (int i = 0; i < width; i++ )
            {
                sensorArray[i] = new double[lenDiv];

                for (int j = 0; j < length; j++ )
                {
                    sensorArray[i][j] = 0;
                }
            }
        }
    }
}
